﻿@model SistemaAdministracion.Models.ViewModels.Account.UserRoleViewModel
@{
    ViewBag.Title = "Register";
}

@section SectionScript{
    <script type="text/javascript" src="~/Scripts/jquery-2.1.0.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.validate.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
}

<h2>Register</h2>

@using (Html.BeginForm("Register", "Account", FormMethod.Post))
{
    @Html.DisplayNameFor(r => r.RegisterModel.UserName)<br />
    @Html.TextBoxFor(r => r.RegisterModel.UserName)
    @Html.ValidationMessageFor(r => r.RegisterModel.UserName)<br />
    @Html.DisplayNameFor(r => r.RegisterModel.Password)<br />
    @Html.TextBoxFor(r => r.RegisterModel.Password)
    @Html.ValidationMessageFor(r => r.RegisterModel.Password)<br />
    @Html.DisplayNameFor(r => r.RegisterModel.Email)<br />
    @Html.TextBoxFor(r => r.RegisterModel.Email)
    @Html.ValidationMessageFor(r => r.RegisterModel.Email)<br />
    <br />
    @Html.EditorFor(r => r.CheckRoles)

    <button>Register Me!</button>
}